﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine.UI;
using DG.Tweening;
using UnityEngine;

// 开局倒计时
public class CountDownDlg : Dialog
{
    Action a;
    // 数字
    private Text _num;
    public int Num
    {
        set
        {
            _num.transform.localScale = new Vector3(2, 2, 1);
            _num.text = value.ToString();
            _num.transform.DOScale(Vector3.one, 0.9f);
        }
    }
    public CountDownDlg()
    {
        Init("UI/FightUI/CountDownDlg");

        _num = _root.FindComponent<Text>("Text");
    }

    public void SetActive(bool b)
    {
        _root.SetActive(b);
    }
}
